package cn.tedu.ivos.geofence.mapper;

import cn.tedu.ivos.geofence.pojo.dto.GeofenceQuery;
import cn.tedu.ivos.geofence.pojo.entity.Geofence;
import cn.tedu.ivos.geofence.pojo.vo.GeofenceVO;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface GeofenceMapper {
    /**
     * 查询电子围栏
     * @param geofenceQuery
     * @return
     */
    List<GeofenceVO> selectGeofence(GeofenceQuery geofenceQuery);

    /**
     * 新建电子围栏信息
     * @param geofence
     */
    void insert(Geofence geofence);

    /**
     * 修改围栏状态
     * @param geofence
     */
    void update(Geofence geofence);

    /**
     * 删除围栏信息按钮
     * @param geofenceId
     */
    void deleteById(Long geofenceId);

}
